import { CommonActions } from '@react-navigation/native';


const reset = (navigation,routeName,params)=>{
    navigation.dispatch(
        CommonActions.reset({
            index:1,
            routes:[{name:routeName,params:params}]
        })
    )
}


export {
    reset
}
